﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tasker.Infrastructure.Entities;

namespace Tasker.Infrastructure.Services
{
    public interface IAccountService
    {
        IUser SelectUser(string login);
        IUser SelectUser(int id);
        IEnumerable<IUser> SelectAllUsers();
        IEnumerable<string> GetUserEmails(int userId);
        IEnumerable<string> GetUserPhones(int userId);
        void DeleteAllEmails(int userId);
        void DeleteAllPhones(int userId);
        void CreateEmail(int userId, string email);
        void CreatePhone(int userId, string phone);
        IUser Register(string login, string position, string password);
        bool ValidateUser(string login, string password);
        bool isUserExist(string login);
        IUser SignedUser { get; }
        void UpdateUser(IUser user);
    }
}
